
package net.swa.dewei.beans.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

/**电池信息表**/
@Entity
@Table(name = "t_DianChi")
public class DianChi
{
    //PK
    private Long id;

    /**名称（暂未使用，待扩展）**/
    private String name;

    /**重量*/
    private String zhongliang;

    /**里程*/
    private String licheng;

    /**品牌**/
    private String pinPai;

    /**型号*/
    private String xingHao;

    /**副标题（暂未使用，带扩展）**/
    private String subName;

    /**电池图片**/
    private String imageUrl;

    /**市场换够价**/
    private String marketPrice;

    /**本网换购价**/
    private String ourPrice;

    /**详细说明**/
    private String detailInfo;

    /**创建时间**/
    private String crateDate;

    /**更新时间**/
    private String updateDate;

    /**排序**/
    private Integer sort;

    /**适应车型（不做实体映射）**/
    private List<DianChiCheXingRelation> relationList;
    
    /**省**/
    private String province;

    /**市*/
    private String city;

    /**县**/
    private String town;
    
    @GenericGenerator(name = "generator", strategy = "native")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "id", unique = true, nullable = false)
    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    @Column(name = "name", length = 255)
    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    @Column(name = "subName", length = 255)
    public String getSubName()
    {
        return subName;
    }

    public void setSubName(String subName)
    {
        this.subName = subName;
    }

    @Column(name = "imageUrl", length = 500)
    public String getImageUrl()
    {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    @Column(name = "marketPrice", length = 10)
    public String getMarketPrice()
    {
        return marketPrice;
    }

    public void setMarketPrice(String marketPrice)
    {
        this.marketPrice = marketPrice;
    }

    @Column(name = "ourPrice", length = 10)
    public String getOurPrice()
    {
        return ourPrice;
    }

    public void setOurPrice(String ourPrice)
    {
        this.ourPrice = ourPrice;
    }

    @Column(name = "detailInfo", length = 500)
    public String getDetailInfo()
    {
        return detailInfo;
    }

    public void setDetailInfo(String detailInfo)
    {
        this.detailInfo = detailInfo;
    }

    @Column(name = "crateDate", length = 30)
    public String getCrateDate()
    {
        return crateDate;
    }

    public void setCrateDate(String crateDate)
    {
        this.crateDate = crateDate;
    }

    @Column(name = "updateDate", length = 30)
    public String getUpdateDate()
    {
        return updateDate;
    }

    public void setUpdateDate(String updateDate)
    {
        this.updateDate = updateDate;
    }

    public Integer getSort()
    {
        return sort;
    }

    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public String getPinPai()
    {
        return pinPai;
    }

    public void setPinPai(String pinPai)
    {
        this.pinPai = pinPai;
    }

    public String getXingHao()
    {
        return xingHao;
    }

    public void setXingHao(String xingHao)
    {
        this.xingHao = xingHao;
    }

    @Transient
    public List<DianChiCheXingRelation> getRelationList()
    {
        return relationList;
    }

    public void setRelationList(List<DianChiCheXingRelation> relationList)
    {
        this.relationList = relationList;
    }

    public String getZhongliang()
    {
        return zhongliang;
    }

    public void setZhongliang(String zhongliang)
    {
        this.zhongliang = zhongliang;
    }

    public String getLicheng()
    {
        return licheng;
    }

    public void setLicheng(String licheng)
    {
        this.licheng = licheng;
    }

    public String getProvince()
    {
        return province;
    }

    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getCity()
    {
        return city;
    }

    public void setCity(String city)
    {
        this.city = city;
    }

    public String getTown()
    {
        return town;
    }

    public void setTown(String town)
    {
        this.town = town;
    }
    
    

}